package ca.camosun.bouncer.tests;

import static org.junit.Assert.*;

import org.junit.Before;
import org.junit.Test;

import ca.camosun.bouncer.game.SingleScore;

public class SingleScoreTest {
	SingleScore testScore;

	@Before
	public void setUp() throws Exception {
		testScore = new SingleScore("Player", 100);
	}

	@Test
	public void testEqualsObject() {
		SingleScore sameName = new SingleScore("Player", 0);
		SingleScore sameScore = new SingleScore("No Match", 100);
		SingleScore match = new SingleScore("Player", 100);
		
		assertTrue(testScore.equals(sameName) == false);
		assertTrue(testScore.equals(sameScore) == false);
		assertTrue(testScore.equals(match) == true);
	}

}
